﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using QUANLIBANHANG.DAL;
using QUANLIBANHANG.ENTITY;
namespace QUANLIBANHANG.BUS
{
   public class NhanvienBUS
    {
       
       public static void insertNV(NhanvienEntity nv)
       {
           try
           {
               
               NhanvienDAL.insertNV(nv);
           }
           catch (Exception ex)
           {
               
               throw ex;
           }
       }
       public static void updateNV(NhanvienEntity nv)
       {
           try
           {
               NhanvienDAL.updateNV(nv);

           }
           catch (Exception ex)
           {
               
               throw ex;
           }
       }
       public static void deleteNV(NhanvienEntity nv)
       {
           try
           {
               NhanvienDAL.deleteNV(nv);
           }
           catch (Exception ex)
           {
               
               throw ex;
           }
       }
       public static DataTable getTableNV(string dk)
       {
           try
           {
               return NhanvienDAL.getTableNV(dk);
           }
           catch (Exception ex)
           {
               
               throw ex;
           }
       }
       public static void updatePass(NhanvienEntity nv)
       {
           try
           {
               NhanvienDAL.updatePass(nv);
           }
           catch (Exception ex)
           {
               
               throw ex;
           }
       }
    }
    
}
